package cn.sxt.clinic.mapper;

import cn.sxt.clinic.pojo.DoctorScheduling;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2020-06-29
 */
public interface DoctorSchedulingMapper extends BaseMapper<DoctorScheduling> {

    @Select("select dc.*,d.dept_name  from t_doctor_scheduling dc left join t_dept d on d.dept_id=dc.dept_id ${ew.customSqlSegment}")
    IPage<DoctorScheduling> selectPage(IPage page, @Param(Constants.WRAPPER) Wrapper wrapper);
}
